package sign;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import properties.AutoQDProperties;
import properties.User;
import util.EmailSender;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Random;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class LoginTest   {
    private static final Logger logger = LoggerFactory.getLogger(LoginTest.class);

    public static void main(String[] args) {
        AutoQDProperties autoQDProperties = new AutoQDProperties();
        for (User user : autoQDProperties.getUsers()) {
            Signer signer = new Signer(user);
            try {
                signer.login();
            } catch (Exception e) {
                logger.error("用户[{}]异常", user.getName());
            }
        }
    }
}

